Home > biomechZoo > Toolbox > Biomech Ops > resample_data.m

resample_data

PURPOSE ^

data = resample_data(data,ch,p,q) resampling function without filtering

SYNOPSIS ^

function data = resample_data(data,ch,p,q,method)

DESCRIPTION ^

 data = resample_data(data,ch,p,q) resampling function without filtering

 ARGUMENTS
  data     ...  Zoo data
  ch       ...  Channel(s) to operate on (single string or cell array of strings).
                Use 'Video' or 'Analog' to resample all video or analog channels
  p        ...  Numerator of fraction of sampling rate. Default = [];
  q        ...  Denominator of fraction of sampling rate. Default = []
  method   ...  Manner in which interpolation is conducted (string).
                Default 'linear'

 RETURNS
  data     ...  Zoo data with chosen channels resampled


 NOTES:
 - If p and q are not provided, then all channels of ch will be resampled
   to the rate of the other. e.g. bmech_resampe(fld,'Analog') resamples all
   Analog channels to the 'Video' sampling rate
 - If only select channels are provided from a given type (e.g. only 'Fz1'
   from 'Analog' channel list. zoosystem metainfo will provide incorrect
   information.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005